package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDate;

public class Student implements Serializable {
    private int id;
    private String idCard;
    private String name;
    private boolean gender;
    private Date createDate;
    private int classID;
    private int age;
    private String eduBackground;
    private String phone;

    public Student(int id,String idCard, String name, boolean gender, Date createDate, int classID, int age, String eduBackground, String phone) {
        this.id = id;
        this.idCard = idCard;
        this.name = name;
        this.gender = gender;
        this.createDate = createDate;
        this.classID = classID;
        this.age = age;
        this.eduBackground = eduBackground;
        this.phone = phone;
    }

    public Student() {}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getClassID() {
        return classID;
    }

    public void setClassID(int classID) {
        this.classID = classID;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEduBackground() {
        return eduBackground;
    }

    public void setEduBackground(String eduBackground) {
        this.eduBackground = eduBackground;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student [id=" + id + ", idCard=" + idCard + ", name=" + name + ", gender=" + gender + ", createDate=" + createDate + ", classID=" + classID + ", age=" + age + ", eduBackground=" + eduBackground + ", phone=" + phone + "]";
    }
}
